package com.plusjun.seckill.scheduled;

import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;

import java.util.concurrent.TimeUnit;

//@Component
//@Slf4j
//@EnableScheduling
//@EnableAsync
public class HelloSchedule {

    @Scheduled(cron = "* * * * * ?  ")
    @Async
    public void hello() {
        //log.info("hello");
        try { TimeUnit.SECONDS.sleep(3); } catch (InterruptedException e) { e.printStackTrace();}
    }
}
